// 列表页面
.page-list {
  display: flex; flex-direction: column; flex-wrap: nowrap;
  .panel-search {
    flex: 0 0 auto; position: relative; display: flex; flex-wrap: wrap;
    padding: 20px 24px 5px 24px; background: #ffffff;
    .search-item {
      display: flex; flex-flow: row nowrap; align-items: center;
      width: 340px; margin-right: 20px; margin-bottom: 15px;
      label {
        flex: 1 0 auto; text-align: right;
      }
      .ant-select, .ant-picker, .ant-select-selection--single, .ant-cascader-picker {
        width: 100%;
      }
    }
    .search-btn {
      margin-bottom: 15px;
      .ant-btn {
        &:not(:first-child) {margin-left: 10px;}
      }
    }
  }
  .panel-table {
    display: flex; flex-direction: column; flex-wrap: nowrap;
    padding: 6px 15px; border-top: 8px solid #f0f2f5; background: #fff;
    .panel-table-tool {
      flex: 0 0 auto;
      display: flex; justify-content: flex-end; align-items: center; padding-bottom: 10px;
      .tool-btn {
        .ant-btn {
          &:not(:first-child) {margin-left: 10px;
          }
        }
      }
    }
    .panel-table-list {
      .table-operate-btn {
        & > span {
          cursor: pointer;
          &[type='edit'] {color: #1c85ed;}
          &[type='view'] {color: #67C239;}
          &[type='delete'] {color: #FB3711;}
          &:not(:first-child) {margin-left: 10px;}
        }
      }
    }
    .panel-table-pager {
      display: flex; flex-flow: row nowrap; justify-content: flex-end; margin: 16px 0 0 0;
    }
  }
}

// 表单页面
.page-edit {
  .panel-form {

  }
  .panel-btn {
    text-align: right;
    .ant-btn {
      &:not(:first-child) {margin-left: 10px;}
    }
  }
}

// 详情页面
.page-detail {
  table.detail-table {
    width: 100%; margin: 0; table-layout: fixed;
    border: 0; border-collapse: collapse; border-spacing: 0;
    tr {
      td {
        height: 16px; line-height: 16px; padding: 10px 5px;
        border: solid 1px #F0F0F0; word-break: break-all;
        &:nth-child(2n+1) {
          background-color: #FAFAFA; text-align: right;
        }
        &.ellipsis, &.ellipsis div, &.ellipsis p {
          text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
        }
      }
    }
  }
}
